package com.spzx.channel.service.impl;

import com.spzx.channel.service.BrandService;
import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.product.api.domain.Brand;
import com.spzx.product.api.service.RemoteBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl implements BrandService {


    @Autowired
    private RemoteBrandService remoteBrandService;

    @Override
    public List<Brand> getbrandAll() {
        List<Brand> brandList = remoteBrandService.getBrandAllList(SecurityConstants.INNER).getData();
        return brandList;
    }
}
